#pragma once

#include "LogViewerDlg.h"

// CFiltSet dialog

#define MAX_LOG_INDEX 2000000000

class CFiltSet : public CDialog
{
	DECLARE_DYNAMIC(CFiltSet)

	//typedef vector<int> IndexVec;
	//IndexVec m_vEnable;
	//IndexVec m_vDisable;

	typedef vector<FilterItem> VecItem;
	VecItem m_vEnabledItem;
	VecItem m_vDisabledItem;

public:
	CFiltSet( const FilterObj & obj, CWnd* pParent = NULL);   // standard constructor
	virtual ~CFiltSet();

// Dialog Data
	enum { IDD = IDD_VIEWSET };

public:
	FilterObj m_filt;
	bool m_bPartialRead;
	DWORD m_dwBeginIndex;
	DWORD m_dwEndIndex;

protected:
	CListBox *m_pListBox;
	CListBox *m_pListBox2;

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual BOOL OnInitDialog();
	virtual void OnOK();
	afx_msg void OnBnClickedButtonAdd();
	afx_msg void OnBnClickedButtonDel();
	afx_msg void OnBnClickedButtonMovup();
	afx_msg void OnBnClickedButtonMovdown();
	afx_msg void OnBnClickedCheck1();
	afx_msg void OnBnClickedButtonEdit();
	afx_msg void OnBnClickedButtonDisable();
	afx_msg void OnBnClickedButtonEnable();
	afx_msg void OnBnClickedButtonDel2();
	afx_msg void OnLbnDblclkList1();
	afx_msg void OnLbnDblclkList2();
	afx_msg void OnBnClickedCheckCasesensitive();
	afx_msg void OnBnClickedCheckSort();
	afx_msg void OnBnClickedOk();
	afx_msg void OnSelChg();
	afx_msg void OnBnClickedCancel();
	DECLARE_MESSAGE_MAP()
};
